package vn.com.servicedirectory.common;


public class CommonFunction {
	public static String checkString(Object obj) {
		if (obj == null)
			return "";
		else
			return String.valueOf(obj);
	}
	public static int checkNumber(Object obj) {
		try {
			return Integer.parseInt(checkString(obj));
		} catch (Exception e) {
			return 0;
		}
	}
	
}
